﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace MM.Common.DBBase
{
    public class InputOutputDataParam : DataParam
    {
        // Methods
        public InputOutputDataParam(string paramName, object paramValue)
            : base(paramName, paramValue, ParameterDirection.InputOutput)
        {
            if (paramValue.GetType() == System.Type.GetType("System.String"))
            {
                base.Size = 0x1f40;
            }
        }

        public InputOutputDataParam(string paramName, object paramValue, object type): this(paramName, paramValue)
        {
            base.Type = type.ToString();
        }

        public InputOutputDataParam(string paramName, object paramValue, object type, int size): this(paramName, paramValue)
        {
            base.Type = type.ToString();
            base.Size = size;
        }
    }
}
